import Vue from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'

import toast from './components/common/toast'


import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

// 安装插件
Vue.use(toast)
Vue.use(VueLazyLoad,{
  loading:require('./assets/img/common/placeholder.png')
})

// 解决移动端300ms延迟
FastClick.attach(document.body)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
		Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
	},
}).$mount('#app')
